
export function hasPermission(arr, valid, def = 'all') {
    if (!valid || arr.includes(def)) return true;

    return arr.some(role => valid.indexOf(role) >= 0)
}
